package com.zhc.dejingapi.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhc
 * @since 2024-08-09
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("realtime")
@ApiModel(value = "RealtimeEntity对象", description = "")
public class RealtimeEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("e_id")
    private Long eId;

    @ApiModelProperty("0：手动 1：半自动 2：电眼自动 3：时间自动 4：调模使用")
    @TableField("OPM")
    private Integer opm;

    @ApiModelProperty("0: 停机 1：待机 2：生产 3：报警")
    @TableField("STS")
    private Integer sts;

    @ApiModelProperty("油温")
    @TableField("OT")
    private String ot;

    @TableField("T1")
    private String t1;

    @TableField("T2")
    private String t2;

    @TableField("T3")
    private String t3;

    @TableField("T4")
    private String t4;

    @TableField("T5")
    private String t5;

    @TableField("T6")
    private String t6;

    @TableField("T7")
    private String t7;

    @ApiModelProperty("异常停机时间")
    @TableField("abnormal_downtime")
    private Date abnormalDowntime;

    @ApiModelProperty("最后上传产量时间")
    @TableField("last_spc_time")
    private Date lastSpcTime;

    @ApiModelProperty("提醒结果（0：未提醒 1：已提醒）")
    @TableField("add_status")
    private Integer addStatus;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time",fill= FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time",fill= FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
